<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="hu" xml:lang="hu">
<head>
<?php print $html->charset('utf-8') ?>
<title><?php print $title_for_layout ?></title>
<link rel="shortcut icon" href="<?php print $html->url('/favicon.ico'); ?>" type="image/x-icon" />
<?php

	print $html->css('twitteverest', 'stylesheet', array('media'=>'screen'));
	print $javascript->link('prototype');
	print $javascript->link('twitteverest');
	print $scripts_for_layout;
?>
</head>
<body>
<div id="full">
	<div id="fejlec">
		<?php
		print $html->link($html->image('logo.png', array('title' => __('Twitteverest home', true))), '/', null, null, false);
		print '<ul id="menu">';
			print '<li>' . $html->link(__('What?', true), array('controller' => 'pages', 'action' => 'display' , 'about'), null, null, true) . '</li>';
			print '<li>' . $html->link(__('Feedback', true), array('controller' => 'stars', 'action' => 'feedback'), null, null, true) . '</li>';
			$twittthis = __('Searching for stars with #twitteverest', true);
			if($this->params['url']['theNames'] || $session->read('twitteverest.users')){
				$theNames = $this->params['url']['theNames'] ? $this->params['url']['theNames'] : implode(' ', $session->read('twitteverest.users'));
				$twittthis = sprintf(__('Searching for stars of %s with #twitteverest', true), ' @' . str_replace(' ', ' @', $theNames));
			}
			if(isset($theNames)){
				$twittthis .= ' ' . $html->url('/', true) . '?theNames=' . str_replace(' ', '+', $theNames);
			}
			else
				$twittthis .= ' ' . $html->url('/', true);
			print '<li><a href="http://twitter.com/home?status=' . urlencode($twittthis) . '">' . __('Twitt this', true) . '</a></li>';
			print '<li>' . $html->link(__('Contribute', true), array('controller' => 'pages', 'action' => 'display' , 'contribute'), null, null, true) . '</li>';
			print '<li>';
				print $html->link('Languages', '#', array('id' => 'selectLang'));
				print '<ul id="languages" style="display:none;">';
					print '<li>' . $html->link('English', array('language' => 'en')) . '</li>';
					print '<li>' . $html->link('Magyar', array('language' => 'hu')) . '</li>';
				print '</ul>';
			print '</li>';
		print '</ul>';
		?>
	</div>
	<div id="lap">
		<?php print $content_for_layout; ?>
		<div id="lab"><?php //debug($session); ?></div>
	</div>
</div>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-2231644-25");
pageTracker._trackPageview();
} catch(err) {}</script>
</body>
</html>